 |
API Documentation
|
|
|
Data holder for a click event.
Definition: ClickEventData.h:12
Tab * getTabByLabel(const nkMemory::StringView &label) const
virtual Layout * setLayout(LAYOUT_TYPE layoutType) override
LAYOUT_TYPE
Defines the type of layout available.
Definition: LayoutType.h:12
virtual void setLabel(const nkMemory::StringView &label, bool autoUpdate=true)
void setAssociatedWin(Window *win)
Represents a layout to organize sub-windows in a window.
Definition: Layout.h:12
Tab * getActiveTab() const
nkMemory::StringView getLabel() const
Window * getAssociatedWin() const
Base class for any graphical component.
Definition: Component.h:12
const std::function< bool(TabWindow *, const ClickEventData &)> & getClickCallback() const
void setTabSwitchCallback(std::function< bool(TabWindow *, TabWindow::Tab *, bool)> value)
virtual void adaptToDisplayArea(Window *toAdapt) const =0
void setParentWindow(TabWindow *parent)
virtual void reorderTab(Tab *tab, unsigned int newIndex)
virtual void changeTabLabel(const nkMemory::StringView &oldLabel, const nkMemory::StringView &newLabel)
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
virtual Tab * getTabByMouseRel(const nkMaths::Point &mouseRel) const =0
Represents a 2D Point.
Definition: Point.h:12
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
void importClassFromTree(nkExport::Node *rootNode) override
Holds information about a tab in the window.
Definition: TabWindow.h:19
A graphical window, made for general purpose.
Definition: Window.h:14
virtual void eraseTab(const nkMemory::StringView &label)
virtual void exportIntrospection(nkExport::Node *rootNode) override
virtual void setActiveTab(Tab *toActivate)
unsigned int getTabCount() const
const std::function< bool(TabWindow *, TabWindow::Tab *, bool)> & getTabSwitchCallback() const
Tab * getTabById(int id) const
virtual Tab * addTab(const nkMemory::StringView &label)
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
TabWindow * getParentWindow() const
A graphical tab window.
Definition: TabWindow.h:12
Tab * getTabByIndex(unsigned int index) const
void setClickCallback(std::function< bool(TabWindow *, const ClickEventData &)> value)
int getTabIndex(Tab *tab) const